package test;

import de.fhhof.robot.control.ConnectionFactory;
import de.fhhof.robot.control.IMessage;
import de.fhhof.robot.control.Message;
import de.fhhof.robot.control.net.Connection;
import de.fhhof.robot.control.net.IConnection;

public class ControlToStorage {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try{
			IConnection control = ConnectionFactory.getConnection("192.168.0.100",8001,"Sl","ST");
			
			IMessage msg =  new Message("A002", "99");
			System.out.println(msg.toString());
			
			
			
			control.send(msg);
			
			Thread.sleep(60000);
/*			IMessage msgACK1 = control.receive();
			IMessage msgACK2 = control.receive();
			
			System.out.println(msgACK1.toString());		
			System.out.println(msgACK2.toString());	*/		
		}
		catch(Exception ex){
			ex.printStackTrace();
		}

	}

}
